package drugs

import (
	"Project/global"
)

type Drugs struct {
	global.GVA_MODEL
	DrugID   int64  `json:"drug_id"   binding:"unique" gorm:"unique;Not NULL; comment:药品唯一标识" `
	DrugName string `json:"drug_name" binding:"unique" gorm:"type:VARCHAR(30);NOT NULL;comment:药名"`
}

func (Drugs) TableName() string {
	return "drugs"
}
